import _http from '@/utils/http'

export default {
    shopList(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/agent/search',
            apiName: '代理商',
        }, params, loading, headers)
    },

    shopDetail(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/agent/detail',
            apiName: '商户详情',
        }, params, loading, headers)
    },

    shopCreate(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/agent/create',
            apiName: '商户创建',
        }, params, loading, headers)
    },

    shopDelete(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/agent/delete',
            apiName: '商户删除',
        }, params, loading, headers)
    },

    shopDisable(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/agent/disable',
            apiName: '商户禁用/启用',
        }, params, loading, headers)
    },

    shopModify(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/agent/modify',
            apiName: '商户修改',
        }, params, loading, headers)
    },
}
